<%@ page language="java" contentType="text/html; charset=utf-8 " import="java.util.Date,java.text.*,domain.User"
    pageEncoding="utf-8"%>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <base href="<%=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/" %>"/>
    <meta charset="utf-8" />
    <title>无使用权限</title>
</head>
    	<%
    	User user=new User();
    	if(session.getAttribute("adminloginflag")==null){
    	%>
    	<script type="text/javascript">
    	    window.location.href="admin/login.jsp";
    	</script>
        <% }else{
        user=(User)session.getAttribute("adminloginflag");
        %>

    	<style type="text/css">
    		body{
    		color: #555;
    		background-color: rgba(0, 0, 0, 0.08);
    		font-size: 80%;
    			}
    		.navigation{
    			position: absolute;
    			height: 100%;
    			width: 20%;
    			top: 0;
    			left: 0;
    			box-shadow: rgba(0, 0, 0, 0.08) 0px 1px 4px 0px;
    			background: white;
    		}
    		.top{
    			position: absolute;
    			top: 0;
    			left: 21%;
    			height: 10%;
    			width: 78%;
    			box-shadow: rgba(0, 0, 0, 0.08) 0px 1px 4px 0px;
    			background: white;
    		}
    		.main{
    			position: absolute;
    			top: 12%;
    			left: 21%;
    			width: 78%;
    			height: 86%;
    			box-shadow: rgba(0, 0, 0, 0.08) 0px 1px 4px 0px;
    			background: white;
    		}
    		.logo{
    			margin: auto;
    			margin-top: 10%;
    			background: url(img/logo.png);
    			width: 60%;
    			margin-bottom:10% ;
    		}
    		.click_box{
    			text-align: center;
    			border-top: black solid 1px;
    			border-bottom: black solid 1px ;
    			background: #199ED8;
    			color: white;
    			padding: 3%;
    			font-size: 160%;
    		}
    		.unclick_box{
    			text-align: center;
    			border-top: black solid 1px;
    			border-bottom: black solid 1px ;
    			padding: 3%;
    			font-size: 160%;
    		}
    		.unclick_box:hover{
    			background: #199ED8;
    			color: white;
    		}
    		.out_login:hover{
    			color: #199ED8;
    		}
    		#shadow{
    				background: #000;
    				filter: alpha(opacity=50); /* IE的透明度 */
    				opacity: 0.6; /* 透明度 */
    				display: none;
    				position: fixed;
    				top: 0px;
    				left: 0px;
    				width: 100%;
    				height: 100%;
    				z-index: 100; /* 此处的图层要大于页面 */
    				display:block;
    			}
    			.box{
    				width: 300px;
    				position: fixed;
    				top: 40%;
    				left: 40%;
    				margin: 0 auto;
    				text-align: center;
    				background: white;
    				border-radius: 15px;
    				padding: 20px;
    				z-index: 101;
    			}
    	</style>
    	<body>

    		<div class="navigation">
    			<center><img src="image/logo.png" class="logo"  /></center>

    		</div>
    		<div class="top">
    			<div style="float: left;margin:2%;font-size: 160%;"><%=new SimpleDateFormat("yyyy-MM-dd E").format(new Date())  %></div>
    			<div style="float: right;margin:2%;font-size: 160%;">
    				<span> <img src="image/u954.svg"/></span>
    				<span style="margin-right: 20px;"><%=user.getUsername() %></span>
    				<span class="out_login">退出</span>
    			</div>
    		</div>
    		<div class="main">

    		</div>
    		<div id="shadow">
    			<div class="box">
    				<h1 >提示</h1>
    				该账户无任何使用权限，请联系管理员配置权限后<a href="AdminOutLogin">重新登录</a>
    			</div>
    		</div>
    	</body>
    	<% } %>
    </html>